projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630a9be
)
Fix marshalling of Xen-API maps with non-string keys.
author
Ewan Mellor
<ewan@xensource.com>
Thu, 22 Mar 2007 14:27:05 +0000
(14:27 +0000)
committer
Ewan Mellor
<ewan@xensource.com>
Thu, 22 Mar 2007 14:27:05 +0000
(14:27 +0000)
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
tools/python/xen/util/xmlrpclib2.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/util/xmlrpclib2.py
b/tools/python/xen/util/xmlrpclib2.py
index 3bdd717de2d6230fc6a2b671d2ace0ead6bc488c..de2b16e4690b5e53f6916edbab1b8115bca17e39 100644
(file)
--- a/
tools/python/xen/util/xmlrpclib2.py
+++ b/
tools/python/xen/util/xmlrpclib2.py
@@
-54,9
+54,10
@@
def stringify(value):
(isinstance(value, int) and not isinstance(value, bool)):
return str(value)
elif isinstance(value, dict):
+ new_value = {}
for k, v in value.items():
-
value[k
] = stringify(v)
- return value
+
new_value[stringify(k)
] = stringify(v)
+ return
new_
value
elif isinstance(value, (tuple, list)):
return [stringify(v) for v in value]
else: